-- GENERATED SPELL FOR [Windyreed Wretch] --


function spell0_17141(pUnit, Event) --@Creeping Mold,n/a--
pUnit:FullCastSpellOnTarget(6278,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17141', 3000, 1)
end

function spell1_17141(pUnit, Event) --@Disease Touch,n/a--
pUnit:FullCastSpellOnTarget(3234,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17141', 636, 1)
end

function Sorts_17141(pUnit, Event)
local choix_sorts_17141 = math.random(0, 1)
if choix_sorts_17141 == 0 then
pUnit:RegisterEvent('spell0_17141', 1, 1)
end
if choix_sorts_17141 == 1 then
pUnit:RegisterEvent('spell1_17141', 1, 1)
end
end

function mob17141_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17141', math.random(1500, 3000), 1)
end

function mob17141_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17141_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17141_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17141, 1, 'mob17141_Action')
RegisterUnitEvent(17141, 2, 'mob17141_Leave')
RegisterUnitEvent(17141, 3, 'mob17141_Kill')
RegisterUnitEvent(17141, 4, 'mob17141_Die')
